package com.vishop.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.vishop.daos.PersoonDaoImpl;
import com.vishop.models.Persoon;

@Service
public class PersoonServiceImpl implements PersoonService {
 
    @Autowired
    private PersoonDaoImpl persoonDao;
     
    @Transactional
    public int save(Persoon persoon){
   		return persoonDao.save(persoon);
   	}
    
    @Transactional
    public Persoon getById(int id){
    	return persoonDao.getById(id);
    }
    
    @Transactional
    public void updatePunten(Persoon persoon){
    	persoonDao.updatePunten(persoon);
    }
    
}
